package org.blueoxygen.kukuruyuk.action.masterreceipe;

import org.blueoxygen.kukuruyuk.action.masterreceipe.MasterReceipeForm;
import org.blueoxygen.kukuruyuk.entity.MasterReceipe;
public class DeleteMasterReceipe extends MasterReceipeForm{
	public String execute(){
        if(getMasterreceipe().getId() != null &&
                !"".equalsIgnoreCase(getMasterreceipe().getId())){
            setMasterreceipe((MasterReceipe) manager.getById(MasterReceipe.class, getMasterreceipe().getId()));
            manager.remove(getMasterreceipe());
        }
        return SUCCESS;
    }

}
